package Executors;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Text {

	public static void main(String[] args) {
		Demo d=new Demo();
		D1 d1=new D1();
		D2 d2=new D2();
		D3 d3=new D3();
		D4 d4=new D4();
		ExecutorService pool=Executors.newFixedThreadPool(1);
		pool.execute(d);
		pool.execute(d1);
		pool.execute(d2);
		pool.execute(d3);
		pool.execute(d4);
	}

}
